﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;

namespace shop.Model
{
    /// <summary> 快递信息 </summary>
    public class LogiTrace
    {
        /// <summary>  </summary>
        [Column(IsPrimary =true, IsIdentity =true)]
        public int id { set; get; }


        /// <summary> 快递单号 </summary>
        [VarChar(30)]
        public string logistics_no { set; get; }

        /// <summary> 快递公司 </summary>
        [Column(StringLength =200)]
        public string LogisticsCompany { set; get; }

        /// <summary> 揽收时间 </summary>
        public DateTime? DeliveryTime { set; get; }

        /// <summary> 最新时间 </summary>
        public DateTime? LastUpdateTime { set; get; }

        /// <summary> 时效 </summary>
        [Column(StringLength =50)]
        public string Timeliness { set; get; }

        /// <summary> 发出至今 </summary>
        [Column(StringLength =50)]
        public string SinceSent { set; get; }

        /// <summary> 最新至今 </summary>
        [Column(StringLength =50)]
        public string SinceLastUpdate { set; get; }

        /// <summary> 条数 </summary>
        //[Column(StringLength =50)]
        public int ItemsCount { set; get; }

        /// <summary> 最后1条物流信息 </summary>
        [Column(StringLength =2000)]
        public string LastLogisticsUpdate { set; get; }

        /// <summary> 物流状态 </summary>
        [Column(StringLength =50)]
        public string LogisticsStatus { set; get; }

        /// <summary> 查询时间 </summary>
        public DateTime? QueryTime { set; get; }

        /// <summary> 完整物流信息 </summary>
        [Column(StringLength =4000)]
        public string FullLogisticsInfo { set; get; }

        /// <summary> 订单编号 </summary>
        [Column(StringLength =50)]
        public string TradeNo { set; get; }

        /// <summary> 倒数第2条物流信息 </summary>
        [Column(StringLength =2000)]
        public string SecondLastLogisticsUpdate { set; get; }

        /// <summary> 第1条物流信息 </summary>
        [Column(StringLength =2000)]
        public string FirstLogisticsUpdate { set; get; }

        /// <summary> 任务备注 </summary>
        [Column(StringLength =100)]
        public string TaskRemarks { set; get; }


        /// <summary>  </summary>
        public bool isdel { set; get; }
    }
}
